package org.csu.onlineedubackend.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestError {
    @GetMapping("/test-error")
    public String testError() {
        int a = 1 / 0; // 故意制造异常
        return "不会执行到这里";
    }
}
